package com.gomtel.smartdevice.moudle.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by Administrator on 2018/5/14 0014.
 */
@Entity
public class PathLengthInfo {

    //主键自增长
    @Id(autoincrement = true)
    private Long id;
    @Unique
    //日期(当前日期)
    private String data;
    //周一(当前所处周)
    private String weekFirst;
    //月(当前所处月)
    private String monthCurrent;
    //路程
    private int length;

    public PathLengthInfo(String data, String weekFirst, String monthCurrent, int length) {
        this.data = data;
        this.weekFirst = weekFirst;
        this.monthCurrent = monthCurrent;
        this.length = length;
    }

    @Generated(hash = 1425590125)
    public PathLengthInfo(Long id, String data, String weekFirst, String monthCurrent,
            int length) {
        this.id = id;
        this.data = data;
        this.weekFirst = weekFirst;
        this.monthCurrent = monthCurrent;
        this.length = length;
    }

    @Generated(hash = 2106106000)
    public PathLengthInfo() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getData() {
        return this.data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getWeekFirst() {
        return this.weekFirst;
    }

    public void setWeekFirst(String weekFirst) {
        this.weekFirst = weekFirst;
    }

    public String getMonthCurrent() {
        return this.monthCurrent;
    }

    public void setMonthCurrent(String monthCurrent) {
        this.monthCurrent = monthCurrent;
    }

    public int getLength() {
        return this.length;
    }

    public void setLength(int length) {
        this.length = length;
    }



}
